<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>茶商城</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->	<link href="<%=request.getContextPath() %>/resources/img/tea.png" rel="icon">
	
		<link rel="stylesheet" href="<%=request.getContextPath() %>/resources/css/teadetail.css">
	    <link rel="stylesheet" href="<%=request.getContextPath() %>/resources/bootstrap/css/bootstrap.min.css">
	    <script src="<%=request.getContextPath() %>/resources/jquery/jquery-1.11.3.min.js"></script>
		<script src="<%=request.getContextPath() %>/resources/bootstrap/js/bootstrap.min.js"></script>
	 	<script type="text/javascript" src="https://unpkg.com/wangeditor/release/wangEditor.min.js"></script>
		<script src="<%=request.getContextPath() %>/resources/js/teadetail.js"></script>		
			
  </head>
 <body style="background-image: linear-gradient(to top, #fff,#30A12B); height: 955px;">
 <div class="container-fluid">
<input id="usersequence" type="text" value='<%=session.getAttribute("usersequence") %>' hidden>
<input id="nickname" type="text" value='<%=session.getAttribute("nickname") %>' hidden>

	<jsp:include page="/WEB-INF/jsp/menu.jsp" />
	<div class="wrapper" style="border:1px solid #000;
height:800px;
width:1500px;
margin:30px 150px 0px 160px;
border-radius:5px;
box-shadow: 5px 6px 5px;
padding-left:70px;">
		  <div class="content-main center">
			
			<h1>${tea.teaname}</h1>
			<div class="row ">
				<div class="col-md-8 " >
					${tea.img}
				</div>
				<div class="col-md-8 " >
					<span class="label label-default"><smail>${tea.type}</smail></span> 
					<div >${tea.teaDetail }</div>
					<a href="${tea.url}">购买</a>	&nbsp;&nbsp;&nbsp;		  		
					<input class="btn btn-warning" type="button" value="加入购物车" onclick="addToSelfcart(${tea.teaId})">
					
					
				</div>
				
			</div>
		</div>
		
	
	
	</div>

</div>

  </body>
  
</html>
